#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<stdlib.h>
#include<time.h>

int main()
{
	srand(time(NULL));
	int b = 0;
	int c = 0;
	int d = 0;
	int m = 0;
	int n = 0;
	int p = 0;
	int a[6] = { 0};
	int i, k;

	for (i = 0; i < 6000; i++)
	{
		k = rand() % 6 + 1;
		switch (k)
		{
		case 1:b++,a[0] = b; break;
		case 2:c++,a[1] = c; break;
		case 3:d++,a[2] = d; break;
		case 4:m++,a[3] = m; break;
		case 5:n++,a[4] = n; break;
		case 6:p++,a[5] = p; break;
		}
	}
	for (i = 0; i < 6; i++)
		printf("%f ", (float)a[i]/6000);

	return 0;
}